package com.dyzx.hbb.modules.sys.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Schema(description = "找回密码")
@Data
public class UserPasswordForgotChangeVO {

   /* @Schema(description = "旧密码")
    @NotBlank(message = "旧密码不能为空")
    @JsonProperty("old_password")
    private String oldPassword;*/

 /*   @Schema(description = "新密码")
    @NotBlank(message = "新密码不能为空")
    @Pattern(regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d]{8,16}$", message = "密码必须包含大小写字母和数字,长度在8-16位之间")
    @JsonProperty("new_password")
    private String newPassword;*/

/*    @Schema(description = "是否为企业管理员")
    private Boolean isAdmin;*/

    @Schema(description = "手机号")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    @JsonProperty("phone")
    private String phone;

    @Schema(description = "短信验证码")
    @NotBlank(message = "验证码不能为空")
    @JsonProperty("vcode")
    private String vcode;

/*    @Schema(description = "邮箱")
    @Email(message = "邮箱格式不正确")
    @JsonProperty("email")
    private String email;

    @Schema(description = "密码找回方式(1:短信;2:邮箱)")
    @NotNull(message = "找回方式不能为空")
    @Range(min = 1, max = 2, message = "找回方式只能是1或2")
    @JsonProperty("retrieve_type")
    private Integer retrieveType;*/

}
